/*
 * Copyright (C) 2011 by Fabien Barbero
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.flickr.api.photos;

import com.flickr.api.photos.notes.PhotoNote;
import com.flickr.api.photos.geo.GeoPermission;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

/**
 * 
 * @author Fabien Barbero
 */
public class PhotoInfos {
    
    @XmlElement(name="owner")
    private Owner owner;
    
    @XmlElement(name="title")
    private String title;
    
    @XmlElement(name="description")
    private String description;
    
    @XmlElement(name="visibility")
    private PhotoVisibility visibility;
    
    @XmlElement(name="dates")
    private PhotoDates dates;
    
    @XmlElement(name="permissions")
    private PhotoPermissions permissions;
    
    @XmlElement(name="editability")
    private PhotoEditability editability;
    
    @XmlElement(name="publiceditability")
    private PhotoEditability publiceditability;
    
    @XmlElement(name="usage")
    private PhotoUsage usage;
    
    @XmlElement(name="comments")
    private int comments;
    
    @XmlElementWrapper(name="notes")
    @XmlElement(name="note")
    private List<PhotoNote> notes;
    
    @XmlElementWrapper(name="tags")
    @XmlElement(name="tag")
    private List<PhotoTag> tags;
    
    @XmlElement(name="location")
    private PhotoLocation location;
    
    @XmlElement(name="geoperms")
    private GeoPermission geoperms;
    
    PhotoInfos() {}

    /**
     * Get the number of comments.
     * @return The number of comments.
     */
    public int getComments() {
        return comments;
    }

    /**
     * Get the dates of the photo.
     * @return The dates of the photo.
     */
    public PhotoDates getDates() {
        return dates;
    }

    /**
     * Get the description of the photo.
     * @return The description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * Get the editability attributes of the photo.
     * @return The deitability attributes.
     */
    public PhotoEditability getEditability() {
        return editability;
    }

    /**
     * Get the geographical permissions.
     * @return The geographical permissions.
     */
    public GeoPermission getGeoPermission() {
        return geoperms;
    }

    /**
     * Get the location of the photo.
     * @return The location.
     */
    public PhotoLocation getLocation() {
        return location;
    }

    /**
     * Get the notes of the photo.
     * @return The notes.
     */
    public List<PhotoNote> getNotes() {
        return notes;
    }

    /**
     * Get the owner of the photo.
     * @return The owner.
     */
    public Owner getOwner() {
        return owner;
    }

    public PhotoEditability getPublicEditability() {
        return publiceditability;
    }

    public List<PhotoTag> getTags() {
        return tags;
    }

    /**
     * Get the title of the photo.
     * @return The title.
     */
    public String getTitle() {
        return title;
    }

    
    public PhotoUsage getUsage() {
        return usage;
    }

    public PhotoVisibility getVisibility() {
        return visibility;
    }

    public PhotoPermissions getPermissions() {
        return permissions;
    }

    @Override
    public String toString() {
        return title + " - " + description;
    }
    
}
